package cn.gailvlun.gll.net.cross;

import cn.gailvlun.gll.util.ProfileUtil;

public class CrossResult {
    private int status;
    private String second_answer;
    private String second_tag;
    private String first_tag;
    private String first_answer;
    private int id;
    private CrossQuestion first;
    private CrossQuestion second;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSecond_answer() {
        return second_answer;
    }

    public void setSecond_answer(String second_answer) {
        this.second_answer = second_answer;
    }

    public CrossQuestion getSecond() {
        return second;
    }

    public void setSecond(CrossQuestion second) {
        this.second = second;
    }

    public String getSecond_tag() {
        return second_tag;
    }

    public void setSecond_tag(String second_tag) {
        this.second_tag = second_tag;
    }

    public String getFirst_tag() {
        return first_tag;
    }

    public void setFirst_tag(String first_tag) {
        this.first_tag = first_tag;
    }

    public String getFirst_answer() {
        return first_answer;
    }

    public void setFirst_answer(String first_answer) {
        this.first_answer = first_answer;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public CrossQuestion getFirst() {
        return first;
    }

    public void setFirst(CrossQuestion first) {
        this.first = first;
    }

    public String getOppositeTagForMe() {
        if (first.getOwner().getId() == ProfileUtil.getUserId()) {
            return first_tag;
        } else {
            return second_tag;
        }
    }
}
